<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Dhara: include/_defs.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Dhara
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">_defs.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;float.h&gt;</code><br />
</div>
<p><a href="__defs_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a313119b975743b98e65bbf3d9ea3487f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a313119b975743b98e65bbf3d9ea3487f">SF_MAX</a>(a,  b)&#160;&#160;&#160;((a) &lt; (b) ? (b) : (a))</td></tr>
<tr class="separator:a313119b975743b98e65bbf3d9ea3487f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3df86d111b485a40ab450ee7be44ed45"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a3df86d111b485a40ab450ee7be44ed45">SF_MIN</a>(a,  b)&#160;&#160;&#160;((a) &lt; (b) ? (a) : (b))</td></tr>
<tr class="separator:a3df86d111b485a40ab450ee7be44ed45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cbf6c05d1eb1a675b6f5f99079d4aac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a0cbf6c05d1eb1a675b6f5f99079d4aac">SF_ABS</a>(a)  &#160;&#160;&#160;((a) &gt;= 0  ? (a) : (-(a)))</td></tr>
<tr class="separator:a0cbf6c05d1eb1a675b6f5f99079d4aac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a524c1b4443ef12d29b1b1d5a43793d3a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a524c1b4443ef12d29b1b1d5a43793d3a">SF_SIG</a>(a)  &#160;&#160;&#160;((a) &gt;= 0  ?  1  :  -1 )</td></tr>
<tr class="separator:a524c1b4443ef12d29b1b1d5a43793d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4ba1b14221aad082cae669d40857fce"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#ab4ba1b14221aad082cae669d40857fce">SF_NINT</a>(x)&#160;&#160;&#160;((int)((x)&gt;0.0?(x)+0.5:(x)-0.5))</td></tr>
<tr class="separator:ab4ba1b14221aad082cae669d40857fce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2d7acad2636d72fe7f96e3fa2adf70f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#ab2d7acad2636d72fe7f96e3fa2adf70f">SF_ODD</a>(<a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a>)&#160;&#160;&#160;((<a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a>) &amp; 1)</td></tr>
<tr class="separator:ab2d7acad2636d72fe7f96e3fa2adf70f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a614a2e995a840beb5f518808e6347420"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a614a2e995a840beb5f518808e6347420">SF_EVEN</a>(<a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a>)&#160;&#160;&#160;(!(<a class="el" href="__defs_8h.html#ab2d7acad2636d72fe7f96e3fa2adf70f">SF_ODD</a>(<a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a>)))</td></tr>
<tr class="separator:a614a2e995a840beb5f518808e6347420"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75cdc112cce07d1cf6523af2f161c2c0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a75cdc112cce07d1cf6523af2f161c2c0">SF_PI</a>&#160;&#160;&#160;(3.14159265358979323846264338328)</td></tr>
<tr class="separator:a75cdc112cce07d1cf6523af2f161c2c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b30201862f70c1552c79140e59902a3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#a0b30201862f70c1552c79140e59902a3">SF_EPS</a>&#160;&#160;&#160;FLT_EPSILON</td></tr>
<tr class="separator:a0b30201862f70c1552c79140e59902a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4df0db1e23f40190febc90e47eab9c3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__defs_8h.html#aa4df0db1e23f40190febc90e47eab9c3">SF_HUGE</a>&#160;&#160;&#160;FLT_MAX</td></tr>
<tr class="separator:aa4df0db1e23f40190febc90e47eab9c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a0cbf6c05d1eb1a675b6f5f99079d4aac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_ABS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a</td><td>)</td>
          <td>&#160;&#160;&#160;((a) &gt;= 0  ? (a) : (-(a)))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0b30201862f70c1552c79140e59902a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_EPS&#160;&#160;&#160;FLT_EPSILON</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a614a2e995a840beb5f518808e6347420"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_EVEN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a></td><td>)</td>
          <td>&#160;&#160;&#160;(!(<a class="el" href="__defs_8h.html#ab2d7acad2636d72fe7f96e3fa2adf70f">SF_ODD</a>(<a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a>)))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa4df0db1e23f40190febc90e47eab9c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_HUGE&#160;&#160;&#160;FLT_MAX</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a313119b975743b98e65bbf3d9ea3487f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_MAX</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">b&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((a) &lt; (b) ? (b) : (a))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3df86d111b485a40ab450ee7be44ed45"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_MIN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">b&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((a) &lt; (b) ? (a) : (b))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab4ba1b14221aad082cae669d40857fce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_NINT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;((int)((x)&gt;0.0?(x)+0.5:(x)-0.5))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab2d7acad2636d72fe7f96e3fa2adf70f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_ODD</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a></td><td>)</td>
          <td>&#160;&#160;&#160;((<a class="el" href="devconst_8h.html#ab5cd3e31a9689adf3ffdd79aa4e700d6">n</a>) &amp; 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a75cdc112cce07d1cf6523af2f161c2c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_PI&#160;&#160;&#160;(3.14159265358979323846264338328)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a524c1b4443ef12d29b1b1d5a43793d3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SF_SIG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a</td><td>)</td>
          <td>&#160;&#160;&#160;((a) &gt;= 0  ?  1  :  -1 )</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
